//引入pinia
import { createPinia } from 'pinia'
//引入pinia持久化插件
import persist from 'pinia-plugin-persistedstate'
//创建pinia实例
const pinia = createPinia()
//使用持久化插件
pinia.use(persist)

//导出pinia实例
export default pinia
//导出其他模块
export * from './modules/token'
export * from './modules/user'